import torch
import numpy as np

a = list()

for i in range (10):
    a.append(torch.randn(1, 3, 4).cuda())

# 将 a 转换成 numpy 数组
a = torch.tensor(np.array([item.cpu().detach().numpy() for item in a])).cuda()
print(a.shape)